package cn.com.surker.enums.oa;

import cn.com.surker.enums.IDescription;
import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;

/**
 * @Author lucky
 * @create 2023年04月07 14:20
 * @desc 打卡类型枚举
 */
public enum ClockTypeEnum implements IDescription, Serializable {

	NOT_CHECKED(-1,"未打卡","×","rgb(255,0,0)"),
	GO_WORK(1,"上班卡","√","rgb(30,144,255)"),
	OFF_WORK(2,"下班卡","√","rgb(30,144,255)"),
	OUT_WORK(3,"外勤卡","外","rgb(30,144,255)"),
    LEAVE(4,"请假","请","rgb(255,136,0)"),
	SUPPLEMENT(5,"补卡","补","rgb(255,136,0)"),
	ABSENTEEISM(6,"旷工","×","rgb(255,0,0)"),
	OTHER(7, "其他","*","rgb(128,128,128)"),
	BE_LATE(8,"迟到","迟","rgb(128,128,128)");

	//	描述
    private final String description;

    //	代码
    private final Integer code;

    //	图表
    private final String icon;

    //	颜色
    private final String color;

    ClockTypeEnum(Integer code, String description,String icon,String color) {
        this.description = description;
        this.code = code;
        this.icon = icon;
        this.color = color;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public Integer getCode() {return code;}

	public String getIcon() {
		return icon;
	}

	public String getColor() {
		return color;
	}


}